home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
xunit
< prev
next >
Wrap
Internet Message Format
|
1995-03-31
|
10KB
Path: seq!spell
From: Lutz Vieweg <lv@muffel.hotb.sub.org>
Subject: v01i038: xunit - The inverse to UBASE v1.0, Part01/01
Newsgroups: comp.sources.hp48
Followup-To: comp.sys.hp48
Approved: spell@seq.uncwil.edu
Checksum: 4077776933 (verify with brik -cv)
Submitted-by: Lutz Vieweg <lv@muffel.hotb.sub.org>
Posting-number: Volume 1, Issue 38
Archive-name: xunit/part01
BEGIN_DOC xunit.doc
XUNIT - the reverse UBASE for the HP48sx
written by Lutz Vieweg 1991
When HP implemented the unit-calculation routines in their 48sx,
they forgot a very often requestet function - the inverse function
to UBASE.
If you calculate with units, you will face a monsterous term after
a while, because the 48sx does not "shorten" the unit-fractions.
This program fills the gap. You may type e.g.
Your input Result
----------------------------------------------------
2.34_F/V 1: 2.34_nF/mV
UBASE 1: .00000234_A^3*s^7/(kg^2*m^4)
XUNIT 1: .00000234_F/V
I hope you can see the meaning of XUNIT.
Below is a ->ASC encoded directory, which consists of the following:
XUNIT The main program. Uses XU.L, XU.A, U->A and ARRSUM
XU.L Is a list of your favourite units. Edit this list, if
you want to, then call XL->A to create XU.A out of the
list. XUNIT will only try to use the units in this list.
XL->A Creates the XU.A list from the XU.L list. This has to be
done any time you change XU.L
U->A A subroutine that creates an array from an unit-object
representing the exponents of the basic units.
NOTICE: This one uses self-modifying ML. Do not store
this one into protected RAM or libraries.
ARRSUM Simply does ABS with any member of an array.
XU.A is used by XUNIT for internal use.
This PGM is public domain. I would like to see any improvements,
especcially speed-ups.
cu, Lutz Vieweg.
END_DOC
BEGIN_ASC xunit.asc
%%HP: T(3)A(R)F(.);
"69A20FF7C3A0000000408555E2144047A208E920460003392010000500000000
0000000000100000000000000010000000000000000000000000000000290000
0000000000008E92046000339201000050000000000000000001000000000000
000200000000000000000000000000000002900000000000000008E920460003
3920100005000000000000000000100000000000000020000000000000000000
0000000000003900000000000000008E92046000339201000050000000000000
0000010000000000000001900000000000000000000000000000029000000000
00000008E9204600033920100005000000000000000000100000000000000020
0000000000000019000000000000003900000000000000008E92046000339201
0000500000000000000000000000000000000000000000000000000100000000
00000001000000000000000008E9204600033920100005000000000000000000
1000000000000000200000000000000029000000000000003900000000000000
008E920460003392010000500000000000000000019000000000000002900000
00000000020000000000000004000000000000000008E9204600033920100005
0000000000000000000000000000000000290000000000000000000000000000
00000000000000000010B21307C300601425253555D460D9D20CB2A1CCD20870
008FB9760147134142348E9208A260654016914234339208A6CE164146D5CD16
4146D7CF16416EAE2D415C016FCC56FCF5FE8F2D760142164808CB2130C90003
055D81430D9D2017791CCD20860008FB976081B580824F2000E2D534B2300C91
34D91443403300C91341461648AA31C9135147C914567EF8F2D760142164808C
CCD20232008FB9760AF21B5830015471B5930015471B5A30015471B5B3001547
1B5C300154714713414234ADA208A26060B1AF316414216434339208A65016F1
4234853568A6901647D811421643426AF08A26064B0169345830081AF083F000
0000000000010AF5142344B2A28B22234173A28B6611311741577AF51646C103
4339208A6F01641567AF516FAF981AF10131155793BE181AF1913517E15740E4
F155479D0B3781AF1881AF096C3F34E8AF08A631345930081AF08654F34EAAF0
8A631345A30081AF08682F34ECAF08A631345B30081AF086B0F34E0BF08A6313
45C30081AF086EEE3427B018A66068BE34E5B018A6A0723064AE93BA181AF191
3517E15740E4F15548F2D760142164808C94BA08184B80181843801CCD204A00
08FB976081B5808243D200E2D53403300C913434B2300C9135147D71461648AA
31C9135147EB14567EF8F2D760142164808C6D3AAD90008A0003B000EB0009C0
00731001F100E0200B22008420000000442308E9204600033920100005000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000CB2A1B21309D3004085C4D81440D9D20E163247A20B21309C2
A284E20408555E2C48B9C10A132D6E20100584E20408555E2C4D6E2010056C7D
184E203055D81476BA1C42324563284E20408555E21497632DCC0293632B2130
3A000408555E2C44047A20ADA209C2A2C2A2070000E468B01B2130ADA209C2A2
C2A2070000A468B01B2130ADA209C2A2C2A20700007568B01B2130ADA209C2A2
C2A2090000051668B01B2130ADA209C2A2C2A20700006568B01B2130ADA209C2
A2C2A20700003468B01B2130ADA209C2A2C2A2070000D968B01B2130ADA209C2
A2C2A20700006468B01B2130ADA209C2A2C2A2090000C68768B01B2130B2130A
3100508555E4944550D9D20E16329C2A24B2A21C432D6E201014D6E2010E4D6E
201024E16323C032D6E20101484E203055D81478BF184E20601425253555D48E
9204600033920100005000000000000000000100000000000000010000000000
000001000000000000000100000000000000010EFFB14B2A24B2A21C432D6E20
10F4D6E2010C4D6E201024D6E201014E16323CE22D6E2010C4AFE22D9D209C2A
284E20408555E2148B9C10A132D6E20100584E20408555E214D6E2010056C7D1
45632D6E20101497632DCC023CE22D6E2010C4D6E2010F4D6E20101490DA184E
20601425253555D48E9204600033920100005000000000000000000100000000
000000010000000000000001000000000000000100000000000000010EFFB1D5
CE1AFE22D9D20D6E20100545632D6E20102497632DCC02D6E2010F4D6E201014
90DA184E20601425253555D48E92046000339201000050000000000000000001
0000000000000001000000000000000100000000000000010000000000000001
0EFFB145632D6E2010C497632DCC02B21305BF22D9D203CE22D6E2010C4D6E20
10F4D6E20101476BA184E20601425253555D48E9204600033920100005000000
0000000000001000000000000000100000000000000010000000000000001000
00000000000010EFFB1D5CE1AFE22D9D20D6E201005599A145632D6E20102497
632DCC02D6E2010F4D6E20101476BA184E20601425253555D48E920460003392
0100005000000000000000000100000000000000010000000000000001000000
000000000100000000000000010EFFB145632D6E2010C497632DCC02B21305DF
22B21305DF223CE22D6E2010C4F88E1AFE22D9D2084E20408555E2148B9C1456
32D6E20100597632DCC02B21305DF22C4232D6E201024B21305BF224B2A25DF2
2EF53245632D6E20102497632DCC023CE22D6E201024AFE22D9D2084E2040855
5E2C4D6E201024F1AA16C7D13CE22D6E2010244B2A2EBBE1AFE22872B15DF224
5632D6E20102497632DCC0245632D6E2010E497632D6E20102435702D6E20101
4D6E20102450FA11779145632D6E20101497632DCC024B2A2B21305BF229C2A2
5DF22DE0329B632D6E2010E4D6E201014EEDA1EF53293632B2130B502"
END_ASC
(seems nice to compress this)
BYTES: #205Bh 2148
BEGIN_UU xunit.bin
begin 644 xunit.bin
M2%!(4#0X+466*O!_/`H````$6%4N001T*H">`F0`,),"`0!0````````````,
M`0`````````!````````````````````D@``````````Z"E`!@`S*1````4`Y
M`````````!``````````(````````````````````"`)`````````(">`F0`R
M,),"`0!0`````````````0`````````"````````````````````DP``````J
M````Z"E`!@`S*1````4``````````!``````````$`D`````````````````-
M`"`)`````````(">`F0`,),"`0!0`````````````0`````````"````````_
M`)$`````````DP``````````Z"E`!@`S*1````4`````````````````````%
M```````````0`````````!```````````(">`F0`,),"`0!0````````````S
M`0`````````"`````````)(`````````DP``````````Z"E`!@`S*1````4`;
M`````````!`)````````(`D````````@`````````$```````````(">`F0`X
M,),"`0!0``````````````````````"2````````````````````````````8
M```!*S%P/``&05)24U5-!ITMP"L:S"V`!P#XFV<0=#$4)$/H*8`J!E8$81DD0
M0S,I@&KL811D7=QA%&1]_&$4YNK2%,40]LQESU_O^-)G$"1AA("\$@.<`#!0Y
MU1@TT-D"<9?!W`)H`("_>0886P@H]`(`+EU#*P/`&4.=030$,P"<,11D882J]
M$YPQ%72<067GCR]]!D$21@C(S"T@(P#XFV>@+[&%`Q!%%ULY`%%TL:4#$$47]
M6SL`472QQ0,011=T,10D0]HJ@"H&!AOZ$T9!$D9#,RF`:@5A'R1#6%.&:@EAD
M=(T1)&$T)*8/J&)@M!"60X4#@*$/.`\````````0H%]!,D0K*K@B,A0W*KAF]
M$1-Q%'6G7V%D'#`TDP*H]A!&47;Z%?;ZB:$?$!-1=3GK@:$?&5-Q'G4$3A]5Z
M=-FP<QCZ@1CZD,;S0X[Z@&H30Y4#@*$/:$4_Y*H/J#8Q5#H`&/J`AO)#SOJ`Y
M:A-#M0.`H0]H"S_DL`^H-C%4/``8^H#F[D-R"X%J!H;K0UX+@6H*)P-&ZCFK\
M@:$?&5-Q'G4$3A]5A"]]!D$21@C(2:N`@;0(@8$T",'<`J0`@+]Y!AA;""@T5
M+0`N74,P`\`90T,K`\`94T'7%V1AA*H3G#$5=+Y!9>>/+WT&01)&",C6H]H)@
M`*@`,`L`O@"0#``W`1`?``X"L"(`2`(```!$,H">`F0`,),"`0!0````````*
M````````````````````````````````````````````````O**Q$@/9`T"`V
MQ=081-#9`AXV0J<"*S&0+"I(+D"`5>7"A)L<H#'2Y@(!4$@N0(!5Y<+4Y@(!G
M4,;7@>0"`U6-06>KP20C5#:"Y`($6%4N07DVTLP@.3:R$@.C`$"`5>7"1$"GW
M`MHJD"PJ+"IP``!.A@NQ$@/:*I`L*BPJ<```2H8+L1(#VBJ0+"HL*G```%>&4
M"[$2`]HJD"PJ+"J0``!0888+L1(#VBJ0+"HL*G```%:&"[$2`]HJD"PJ+"IPF
M``!#A@NQ$@/:*I`L*BPJ<```G88+L1(#VBJ0+"HL*G```$:&"[$2`]HJD"PJ&
M+"J0``!L>(8+L1(#*S&@$P`%6%5.250%G2W@82/)HD(K*L$TTN8"`4%M+A#@K
MU.8"`4(>-C(,(VTN$!"$Y`(#58U!A_N!Y`(&05)24U5-Z"E`!@`S*1````4`2
M`````````!``````````$``````````0`````````!``````````$.#_&[2B?
M0BLJP332Y@(!3VTN$,#4Y@(!0FTN$!#D82/#+M+F`@%,^B[2V0+)HH+D`@18O
M52Y!N,D!&B-M+A``A>0"!%A5+D%M+A``97P=5#;2Y@(!07DVTLP@PR[2Y@(!.
M3&TN$/#4Y@(!00FM@>0"!D%24E-53>@I0`8`,RD0```%```````````0````*
M`````!``````````$``````````0`````````!#@_QM=[*'O(ITMT.8"`5!4&
M-M+F`@%">3;2S"!M+A#PU.8"`4$)K8'D`@9!4E)354WH*4`&`#,I$```!0``F
M````````$``````````0`````````!``````````$``````````0X/\;5#;2,
MY@(!3'DVTLP@*S%0^R*=+3#L(FTN$,#4Y@(!3VTN$!!TMAI(+F`0)"4U5=6$:
MG@)D`#"3`@$`4`````````````$``````````0`````````!``````````$`=
M`````````?Z_T<4>^B[2V0)M+A``59D:5#;2Y@(!0GDVTLP@;2X0\-3F`@%!@
M9ZN!Y`(&05)24U5-Z"E`!@`S*1````4``````````!``````````$```````=
M```0`````````!``````````$.#_&U0VTN8"`4QY-M+,("LQ4/TB*S%0_2+#"
M+M+F`@%,C^BA[R*=+8#D`@1852Y!N,E!92-M+A``E6<CS0RR$@/5+\(D(VTNS
M$""T$@.U+T(K*M4OXE\C5#;2Y@(!0GDVTLP@PR[2Y@(!0OHNTMD"2"Y`@%7E.
MPM3F`@%"'ZIA?!W#+M+F`@%"M*+BNQ[Z+H(G&]4O0F4C;2X0()1G(\T,0F4CN
M;2X0X)1G(VTN$"`T=2!M+A`0U.8"`4(%KQ%W&50VTN8"`4%Y-M+,(+2BLA(#6
@M2^2+"K5+](.([DVTN8"`4YM+A`0Y-X:_C628R,K,0`KS
``
end
END_UU
--
*** EMail to: lv@muffel.hotb.sub.org ***
*** FidoNet : 2:247/30.20 ***